package practice;

import org.testng.annotations.Configuration;
import org.testng.annotations.Test;
@SuppressWarnings("deprecation")
public class FirstTestNGSample {
	public FirstTestNGSample() {
		super();
	}
    @Test
    public void testPass() {
    		assert true; //If condition is true print "This test should pass."
    		System.out.println("This test should pass.");
    }
    
    @Test
    public void testFail() {
    		assert false : "This test will fail";// If condition is false throw exception with message"This test will fail"
    		
    }	
    
    @Configuration(beforeTestClass = true)
	public void doBeforeTests() {
		System.out.println("invoke before test class!");
	}
    @Configuration(afterTestClass = true)
	public void doAfterTests() {
		System.out.println("invoke after test class!");
	}
}